<?php

namespace App\Http\Controllers\Api\V1;

use App\Supports\File\ImageUploader;
use App\Http\Controllers\Api\V1\Requests\FileStoreRequest;
use Illuminate\Http\JsonResponse;
use GuzzleHttp\Client;

class FilesController extends Controller
{
	public function store(FileStoreRequest $request): JsonResponse
    {	

        
	    $image = app(ImageUploader::class)->upload($request->image);
	    return response()->json(['image' => $image]);
    }
}
